package com.hdphone.zljutils.inter;

import com.google.gson.JsonParseException;

import java.lang.reflect.Type;

/**
 * @author sq
 * @date 2020/10/20
 * @describe
 */
public interface IGsonUtil {

    <T> T fromJson(String json, Class<T> classOfT) throws JsonParseException;

    <T> T fromJson(String json, Type typeOfT) throws JsonParseException;

    String toJson(Object value);

}
